package com.fdb.efp.loan.service.dao;

import com.fdb.efp.loan.service.domain.SyncRepayDetailDiffLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DAO Interface: 还款明细差异表
 *
 * @author gcb
 * @date 2020-04-27
 */
public interface SyncRepayDetailDiffLogDao {
    /**
     * 新增数据
     *
     * @param syncRepayDetailDiffLog
     * @return
     */
    int insert(SyncRepayDetailDiffLog syncRepayDetailDiffLog);

    /**
     * 根据主键删除信息
     *
     * @param syncRepayDetailDiffLog
     * @return
     */
    int deleteByPk(SyncRepayDetailDiffLog syncRepayDetailDiffLog);

    /**
     * 根据主键更新信息
     *
     * @param syncRepayDetailDiffLog
     * @return
     */
    int updateByPk(SyncRepayDetailDiffLog syncRepayDetailDiffLog);

    /**
     * 根据主键查询详情
     *
     * @param syncRepayDetailDiffLog
     * @return
     */
    SyncRepayDetailDiffLog queryByPk(SyncRepayDetailDiffLog syncRepayDetailDiffLog);

    int batchInsert(@Param("list") List<SyncRepayDetailDiffLog> list);
}